﻿using EntityModel.PageListInfor;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace EntityModel.CommodityMent
{
    /// <summary>
    /// 商品规格表
    /// </summary>
    [Table("goods_specs")]
    public class AikeApplet_goods_specs: Pagination
    {
        /// <summary>
        /// 商品规格id
        /// </summary>
        [Key]
        public int id { get; set; }

        /// <summary>
        /// 店铺id
        /// </summary>
        public int shopId { get; set; }

        /// <summary>
        /// 商品id
        /// </summary>
        public int goodsId { get; set; }

        /// <summary>
        /// 商品货号
        /// </summary>
        public int productNo { get; set; }

        /// <summary>
        /// 市场价
        /// </summary>
        public decimal marketPrice { get; set; }

        /// <summary>
        /// 商品价
        /// </summary>
        public decimal specPrice { get; set; }

        /// <summary>
        /// 库存
        /// </summary>
        public int specStock { get; set; }

        /// <summary>
        /// 预警值
        /// </summary>
        public int warnStock { get; set; }

        /// <summary>
        /// 销量
        /// </summary>
        public int saleNum { get; set; }

        /// <summary>
        /// 默认规格	
        /// 1：默认规格 0：非默认规格
        /// </summary>
        public int isDefault { get; set; } = 0;

        /// <summary>
        /// 有效状态	
        /// 1:有效 0:无效
        /// </summary>
        public int dataFlag { get; set; } = 1;

        /// <summary>
        /// 商品重量
        /// </summary>
        public double specWeight { get; set; }

        /// <summary>
        /// 商品体积
        /// </summary>
        public double specVolume { get; set; }
    }
}
